package speed2010.matcher.exceptions;

import java.util.ArrayList;

public class ExceptionsHolder extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1757837799850509744L;

	private ArrayList<Exception> exceptions;
	
	public ExceptionsHolder()
	{
		this.exceptions = new ArrayList<Exception>();
	}

	public ArrayList<Exception> getExceptions() {
		return exceptions;
	}

	public boolean hasExceptions() {		
		return this.exceptions != null && this.exceptions.size() > 0;
	}
	
	public void add(Exception e)
	{
		this.exceptions.add(e);
	}
	
}
